package nori6_server_controllers;

import java.io.IOException;

public class ServerController 
{
	public static void main(String[] args)
	{
		NetworkController networkController = new NetworkController(6666);
		Thread serverThread = new Thread(networkController);
		serverThread.start();
		
		try 
		{
			System.in.read();
			// Kill the server thread
			serverThread.interrupt();
			serverThread.join();
		} 
		catch (InterruptedException | IOException e)  
		{
			e.printStackTrace();
		}
	}
}